package ipe.viewtest;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;


public final class ChildViewActivity extends Activity {

	private Button cmdClose;
	private String TAG = new String("Child");
	private View.OnClickListener oclClose;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.childview);
        Log.d(TAG, "ChildWindow onCreate ...");
        cmdClose = (Button) findViewById(R.id.btnClose);
        // onclicklistener nebudem zakladat v parametri funkncie jak debil, 
        // ale pekne vonku, nech sa to po mne da aj citat
        oclClose = new View.OnClickListener() {
			public void onClick(View v){
				finish();
			}
        };
        cmdClose.setOnClickListener(oclClose);
    }

    
}